<?php

return CMap::mergeArray(
                require(dirname(__FILE__) . '/local.php'), array(
            'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
            'sourceLanguage' => 'code',
            'language' => 'en_us',
            // preloading 'log' component
            'preload' => array('log'),
            // autoloading model and component classes
            'import' => array(
                'application.models.*',
                'application.models.db.*',
                'application.components.common.*',
                'application.components.rdb.*',
                'application.components.crawler.*',
            ),
            // application components
            'components' => array(
//            'clientScript'=>array(
//                'scriptMap'=>array(
//                    'jquery.js'=>false,
//                    'jquery.min.js'=>false,
//                )
//            ),
                'CURL' => array(
                    'class' => 'application.extensions.curl.Curl',
                ),
                'user' => array(
                    // enable cookie-based authentication
                    'allowAutoLogin' => true,
                ),
                'session' => array(
                    'class' => 'system.web.CDbHttpSession',
                    'sessionTableName' => 'session',
                    'connectionID' => 'db',
                ),
                // enable URLs in path-format
                'urlManager' => array(
                    'urlFormat' => 'path',
                ),
                'log' => array(
                    'class' => 'CLogRouter',
                    'routes' => array(
//                    array(
//                        'class'=>'application.extensions.yii-debug-toolbar.YiiDebugToolbarRoute',
//                        'ipFilters'=>array('*'),
//                    ),
                        array(
                            'class' => 'CFileLogRoute',
                            'levels' => 'info',
                            'levels' => 'error, warning',
                        ),
                    ),
                ),
            ),
            // module config
            'modules' => array(),
            'params' => array(
                'systemFrontEndUrl'=>'http://vtphone',
                # Cấu hình
                'gmailInfo' => array(
                    'name' => 'Lê văn Chiến',
                    'username' => "levanchien.it@gmail.com",
                    'password' => ""
                ),
                'systemCacheTimeLife' => 600, //secons
                'langArray' => array(
                    'en_us' => Yii::t('BackEnd', 'English'),
                ),
                'defaultLanguage' => 'vn',
                'notEndcodeFields' => array('id'),
                'maxUploadFileSize' => 8388608, // 8*1024*1024 = (8M) limit file size in bytes
                'supportMineTypes' => array("image/gif", "image/jpeg", "image/png", "application/x-shockwave-flash", "image/psd", "image/bmp", "image/tiff", "application/octet-stream", "image/jp2", "image/iff", "image/vnd.wap.wbmp", "image/xbm", "image/vnd.microsoft.icon"),
            ),
                )
);
